package api.app;

import java.io.IOException;
import org.json.JSONException;
import org.json.JSONObject;
import common.Host;
import common.Request;

public class VerificationCodeForPassword
{
	/**
	 * 实现帮忙医找回密码VerificationCodeForPassword接口调用
	 * 
	 * @param userAccount 电话号码
	 * @return 接口返回数据
	 * @throws JSONException
	 * @throws IOException
	 */
	public static String post(String userAccount) throws JSONException, IOException
	{
		String url = Host.getAddress() + "/APIAccount/Verificationcodeforpassword"; // 拼接口地址

		JSONObject parmsTemp = new JSONObject();
		parmsTemp.put("UserAccount", userAccount); // 参数赋值

		String result = Request.post(url, parmsTemp); // 调用接口并放回接口参数
		return result;
	}
}
